using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeBreachLoader:Upgrade {
	bool isFirstShot;
	bool firstShotFired;

	protected override void ReloadingEventHandler(object _sender,ReloadEventArgs e) {
		base.ReloadingEventHandler(_sender,e);
		isFirstShot=true;
		firstShotFired=false;
	}

	protected override void BurstDecidingEventHandler(object _sender,BurstDecidingEventArgs e) {
		base.BurstDecidingEventHandler(_sender,e);
		if(firstShotFired) firstShotFired=false;
		if(isFirstShot) {
			isFirstShot=false;
			firstShotFired=true;
		}
	}

	protected override void ReloadStartEventHandler(object _sender,ReloadStartEventArgs e) {
		if(weaponWeapon.currentClip.content.Count!=0) return;
		if(!firstShotFired) return;
		base.ReloadStartEventHandler(_sender,e);
	}

}
